package com.linhai.scm.entity.client;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.linhai.scm.entity.base.BaseBean;
import com.linhai.scm.entity.base.Client;
import com.linhai.general.enums.Enum_SexType;

/**
 * 客户信息表
 * @author linhai
 *
 */
@Entity//表示为实体类
@Table(name="TB_ClientInfo")//表名注解
public class ClientInfo extends BaseBean implements Serializable {
	private static final long serialVersionUID = 1L;	
	
	private Client client;
	private String clientName;
	private String clientENName;
	private String clientCode;
	private Enum_SexType sex;
	private String cardID;
	private String tel;
	private String phone;
	private String province;
	private String city;
	private String district;
	private String address;
	private String zipCode;
	private String remark;
	private String clientQuestion;
	private String clientAnswer;
	
	@OneToOne
	@JoinColumn(name = "clientID")
	public Client getClient(){
		return client;
	}
	
	@Column(name = "clientName")
	public String getClientName() {
		return clientName;
	}
	
	@Column(name = "clientENName")
	public String getClientENName() {
		return clientENName;
	}
	
	@Column(name = "clientCode")
	public String getClientCode() {
		return clientCode;
	}
	
	@Column(name = "sex")
	public Enum_SexType getSex() {
		return sex;
	}
	
	@Column(name = "cardID")
	public String getCardID() {
		return cardID;
	}

	@Column(name = "tel")
	public String getTel() {
		return tel;
	}

	@Column(name = "phone")
	public String getPhone() {
		return phone;
	}

	@Column(name = "province")
	public String getProvince() {
		return province;
	}

	@Column(name = "city")
	public String getCity() {
		return city;
	}

	@Column(name = "district")
	public String getDistrict() {
		return district;
	}

	@Column(name = "address")
	public String getAddress() {
		return address;
	}

	@Column(name = "zipCode")
	public String getZipCode() {
		return zipCode;
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}
	
	@Column(name = "clientQuestion")
	public String getClientQuestion() {
		return clientQuestion;
	}
	
	@Column(name = "clientAnswer")
	public String getClientAnswer() {
		return clientAnswer;
	}	

	public void setClient(Client client){
		this.client=client;
	}
	
	public void setClientName(String clientName) {
		this.clientName = clientName;
	}
	
	public void setClientENName(String clientENName) {
		this.clientENName = clientENName;
	}
	
	public void setClientCode(String clientCode) {
		this.clientCode = clientCode;
	}
	
	public void setSex(Enum_SexType sex) {
		this.sex = sex;
	}
	
	public void setCardID(String cardID) {
		this.cardID = cardID;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public void setClientQuestion(String clientQuestion) {
		this.clientQuestion = clientQuestion;
	}
	public void setClientAnswer(String clientAnswer) {
		this.clientAnswer = clientAnswer;
	}
}
